package com.ruoyi.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址管理对象 address
 * 
 * @author ruoyi
 * @date 2024-07-09
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    private Long id;

    /** 地址名称 */
    @Excel(name = "地址名称")
    private String name;

    /** 城市id */
    @Excel(name = "城市id")
    private Long cityId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCityId(Long cityId) 
    {
        this.cityId = cityId;
    }

    public Long getCityId() 
    {
        return cityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cityId", getCityId())
            .toString();
    }
}
